package com.stream.service.impl;

import com.stream.model.entity.SysOssEntity;
import com.stream.repository.SysOssRepository;
import com.stream.service.SysOssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Stream on 2017/6/20.
 */
@Service("sysOssService")
public class SysOssServiceImpl implements SysOssService {

    @SuppressWarnings("SpringJavaAutowiringInspection")
    @Autowired
    private SysOssRepository sysOssRepository;

    @Override
    public SysOssEntity queryObject(Long id) {
        return sysOssRepository.queryObject(id);
    }

    @Override
    public List<SysOssEntity> queryList(Map<String, Object> map) {
        return sysOssRepository.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return sysOssRepository.queryTotal(map);
    }

    @Override
    public void save(SysOssEntity oss) {
        sysOssRepository.save(oss);
    }

    @Override
    public void update(SysOssEntity ossEntity) {
        sysOssRepository.update(ossEntity);
    }

    @Override
    public void delete(Long id) {
        sysOssRepository.delete(id);
    }

    @Override
    public void deleteBatch(Long[] ids) {
        sysOssRepository.deleteBatch(ids);
    }
}
